<template>
	<view>
		<plhead :height="headh"></plhead>
		<view class="top">
			<u-status-bar :bgColor="bgColor"></u-status-bar>
			<view class="head" :style="{height:headh,background:bgColor}">
				<image src="/static/order/back.png" class="head__back" @click="back" mode=""></image>
				<view class="head__title">
					{{title}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "navbar",
		props: {
			bgColor: {
				default: '#f8f8f8',
				type: String
			},
			headh: {
				default: '103rpx',
				type: String
			},
			title: {
				default: '',
				type: String
			}
		},
		data() {
			return {

			};
		},
		methods:{
			back(){
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
	.top{
		position: fixed;
		top: 0;
		left: 0;
		width: 750rpx;
		z-index: 1;
	}
	.head {
		display: flex;
		align-items: center;
		padding: 0 30rpx;
		
		&__back {
			width: 19rpx;
			height: 33rpx;
			margin-right: 19rpx;
		}

		&__title {
			font-family: PingFang-SC, PingFang-SC;
			font-weight: bold;
			font-size: 34rpx;
			color: #010101;
			line-height: 34rpx;
		}
	}
</style>